Skip to main content

All Questions

Tagged with
-1votes
2answers
81views

ssh command just exits the sesssion

I have this: ssh -i "alex-kp.pem" '[email protected]' ' cd codes/vbe eval $(ssh-agent) ssh-add -D ssh-add ~/.ssh/id_vbe ' it executes the commands ...
Alexander Mills's user avatar
0votes
0answers
171views

How can I add a line to file using bitbucket pipeline build

I have made a bitbucket pipeline, but I want to make changes to configuration file each time during after its build I want to add "Staging" each time after the build of the project to a ...
oo7hacker's user avatar
0votes
1answer
475views

How to copy files to sourceforge in non-interactive request for password?

I want to automate the copying of files to Sourceforge with GitHub Actions. I get problems when I copy files in non-interactive mode. For eg: scp <file on laptop> <folder in sourceforge host&...
Rahul Khinchi's user avatar
0votes
1answer
360views

Linux - User Display name alias in shell prompt

Is it possible to alias the user display name in the shell prompt? For example: When I ssh with [email protected], it displays as John123 [John123@myhost ~]# Can I change it to a alias csgeek ...
user630702's user avatar
5votes
4answers
1kviews

Why does cat'ing a file via ssh result in control characters? [closed]

I have a device in /var/iot/data which I'm trying to get the data from remotely. On the machine itself: # cat /var/iot/data | xxd -ps -c 32 80de004a030270055678013ac591e5c6abac2185f4319c8088e3 That'...
Greg Bell's user avatar
3votes
2answers
8kviews

SSH works but not SFTP

I am working on a project for a client from which we are using multiple docker containers on a host machine. I need to copy some files from my computer to the host machine, but when using an SFTP-...
user2868900's user avatar
2votes
3answers
5kviews

Bash commands get truncated when pasting multiple commands to terminal

I copy/pasted the following 100 lines into my terminal (xterm) to execute those on a server I am connected to over ssh: mv /long/path/to/file1 /longer/path/to/file1 mv /long/path/to/file2 /longer/...
Gohu's user avatar
  • 2,214
0votes
1answer
2kviews

Copy a line of text from nano running in a shell over ssh in order to paste into a local gedit instance

I routinely access remote files using nano in a terminal shell over ssh. Sometimes I'd like to copy a large amount of text (sometimes one line sometimes a large block) and paste it into a local ...
Mr Purple's user avatar
11votes
3answers
4kviews

SSH connections running in the background don't exit if multiple connections have been started by the same shell

Apparently, if the same shell launches multiple ssh connections to the same server, they won't return after executing the command they're given but will hang (Stopped (tty input)) for ever. To ...
terdon's user avatar
  • 250k
1vote
1answer
207views

ssh remote run - problems

This will print 4 lines: ssh root@remote_ip "service iptables restart" Output: iptables: Flushing firewall rules: [ OK ] iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: ...
user avatar
6votes
1answer
8kviews

How can I pipe something to less over ssh?

I am trying to configure a mutt binding to pipe an email into an ssh invocation to process the mail on a remote machine with a script that displays some output using less. However, this does not work, ...
a3nm's user avatar
  • 9,487
5votes
3answers
2kviews

How to display commands in a different terminal?

I have a raspberry pi with a screen attached to it. It boots up to a login prompt. I have no keyboard and no mouse attached to it and would like to keep it this way. I proceed to login to it via ssh ...
Euphorbium's user avatar
1vote
0answers
3kviews

Load a background image or set the background color if Konsole/Shell is running SSH

I want to set my laptop to load an image in the shell's background or set the background color to red if I'm connected via SSH. How can this be done? With a bash function in .bashrc? I have: Set the ...
somethingSomething's user avatar
43votes
5answers
90kviews

I am using `&`: why isn't the process running in the background?

I know that I can append & to a command to run the process in the background. I'm SSH'ing into an Ubuntu 12.04 box and running a python program with $python program.py & -- but when I go to ...
bernie2436's user avatar
1vote
1answer
897views

Autocompletion and coloring not working, when using ssh in emacs shell

I'm connecting to remote server using emacs shell. Emacs shell displays directory listings with proper coloring and auto completion when working with local machine. But when I use ssh the ...
Kshitiz Sharma's user avatar

153050per page
close